package com.eastjet.maintenance.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.eastjet.maintenance.domain.DeviceType;
import com.ruoyi.common.datasource.annotation.Master;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 杨博文
 * @description 针对表【device_type(设备类型)】的数据库操作Mapper
 * @createDate 2024-11-25 09:23:38
 * @Entity com.eastjet.pojo.domain.DeviceType
 */
@Master
@Repository
public interface DeviceTypeMapper extends BaseMapper<DeviceType> {
    Boolean InsertType(DeviceType type);

    /**
     * 查询所有设备类型
     *
     * @return
     */
    List<DeviceType> selectAllType();

    Integer updateQi(@Param("status") String status, @Param("code") String code);

    Integer  DeleteType(@Param("code") String code);
}




